<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="offer.SessionObj"%>
<%@page import="offer.Navigation"%>
<%
	SessionObj nav_sessionObj= (SessionObj)request.getSession().getAttribute("sessionObj");
	String IndexUrl = Navigation.getLoginUrl(nav_sessionObj);
	IndexUrl = IndexUrl.substring(1,IndexUrl.length());
	String op_from   = null;
	String indexUrl  = "GoToIndexServlet";
 	if(null != request.getAttribute("op_from")){
		op_from = (String)request.getAttribute("op_from");
		if(op_from.equalsIgnoreCase("op_Audit")){
			indexUrl = "GoToAuditIndexServlet";
		}
	}
	boolean checkAuditResult = Navigation.isAuditResultAvailable(nav_sessionObj);
	boolean fillAuditResult  = Navigation.shouldFillAuditReshult(nav_sessionObj);
	boolean showSave         = Navigation.isShowSave(nav_sessionObj);
	
%>
<div id="titleContent" class="titleContent">
  <div class="title_bar">
    <div style="float:left;width:300px"><img width="300" height="50" src="images/log_3.png" /></div>
    <div style="float:left;width:800px" >
       <div align="left" style="font-size:14px;height:32px;margin:0px;padding-top:2px;border:0px;">
        
       </div>
       <div align="right" style="font-size:14px;margin:0px;padding:0px;border:0px;">
           <a href="<%=indexUrl %>">mainPage</a>&nbsp;&nbsp;&nbsp;
           <% if( (null == op_from) && showSave ) {%>
           <a href="#" onclick="javascript:saveModuleToDb()">save</a> &nbsp;&nbsp;&nbsp;
           <!-- <a href="BacthAdjustMimKeyrefOrderServlet" target= "ContentIframe">批量调整</a>&nbsp;&nbsp;&nbsp;-->
           <a href="#" onclick="javascript:submitModuleToAudit()">commit</a> &nbsp;&nbsp;&nbsp;  
           <%} %>
           <% if(fillAuditResult){ %>
           <a href="GoToAuditServlet" target= "ContentIframe" >fill audit result</a> &nbsp;&nbsp;&nbsp; 
           <% } %>
           <% if(checkAuditResult){ %>
           <a href="GoToCheckAuditResultServlet" target= "ContentIframe" >view audit result</a> &nbsp;&nbsp;&nbsp;
           <% } %>
           <a href="login.jsp?op=loginOut">logout</a>&nbsp;&nbsp;&nbsp;
           <a target="_balck" href="downloadfiles.jsp">download</a>&nbsp;&nbsp;&nbsp;
          
       </div>
    </div>
    <div style="clear:both;"></div>
   </div>
 </div>
